package com.weirong.smartvault.backservice.util.statistics;

import java.lang.reflect.InvocationTargetException;

/**
 * 于2017/12/21由 KFEB4 创建 .
 * 为了便于说明参数
 */
public class Statistics {
    public static double getValue(StatisticsType type,String currencyType, Integer year,Integer month) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        return type.cal(currencyType,year,month);
    }
    public static double getValue(StatisticsType type,String currencyType, Integer year,Integer month,Integer day) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        return type.cal(currencyType,year,month,day);
    }

}
